<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<%@ include file="../general_fen.jsp"%>
</head>
<body class="body_in" id="body_id">
	<div class="row"
		style="background-color: rgb(243, 244, 245); margin: 0px 15px;">
		<div
			style="height: 40px; background-color: rgb(243, 244, 245); margin: 5px 0;">
			<h4 style="float: left; padding-left: 10px; overflow: hidden;">积分规则管理</h4>
			<!--功能区按钮-->
			<div
				style="background-color: rgb(243, 244, 245); height: 40px; width: -moz-max-content; float: right; margin-right: 15px; padding: 5px 0px 0px; border-radius: 2px; overflow: hidden;">
				<a data-original-title="添加" class="btn btn-info btn-sm btna"
					onclick="openInsert()" data-toggle="tooltip" title=""><span
					class="glyphicon glyphicon-plus" data-toggle="modal"
					data-target="#myModal_1"></span></a> <a data-original-title="禁用"
					class="btn btn-danger btn-sm btna" data-toggle="tooltip"
					onclick="delCR()" title=""><span
					class="glyphicon glyphicon-minus-sign" data-target="#myModal_4"
					data-toggle="modal"></span></a> <a data-original-title="修改"
					class="btn btn-success btn-sm btna" data-toggle="tooltip" title=""
					onclick="getCR()"><span class="glyphicon glyphicon-pencil"
					data-toggle="modal" data-target="#myModal_1"></span></a> <a
					data-original-title="搜索" class="btn btn-ss btn-sm btna"
					data-toggle="tooltip" title=""><span
					class="glyphicon se_gly glyphicon-search"></span></a>
			</div>
		</div>
		<div class="col-md-12" style="padding: 0px;">
			<div class="box">
				<table class="table table-striped table-advance table-hover">
					<thead>
						<tr>
							<th><input type="checkbox" id="ck-all" name="ck-all"
								onclick="checkall();">&nbsp;全选</th>
							<th>序号</th>
							<th>积分规则编号</th>
							<th>积分规则分类</th>
							<th>积分规则内容</th>
							<th>积分动作</th>
							<th>最大值</th>
							<th>最大值</th>
							<th>积分值</th>
							<th>是否每天一次性</th>
							<th>每天积分上限值</th>
							<th>生效时间</th>
							<th>结束时间</th>
							<th>备注</th>
							<th>积分规则状态</th>
						</tr>
					</thead>
					<tbody id="credists_list_1">
						<tr>

						</tr>
					</tbody>
				</table>
			</div>
			<!-- /.box -->
		</div>
	</div>
	<div class="pag_in pagination"></div>
	<!-- </div> -->
	<!-- 弹出框 -->
	<div class="tank tank1" id="myModal_1">
		<!-- <div class="modal-dialog modal-dialog_1"> -->
		<div class="modal-content">
			<div class="modal-header" style="padding: 8px;">
				<a type="button" class=" btn btn-danger btn-sm btnb"
					data-dismiss="modal" aria-hidden="true" data-placement="bottom"
					data-toggle="tooltip" title="取消"> <span
					class="glyphicon glyphicon-off"></span>
				</a> <a type="button" href="javascript:insert();"
					class="btn btn-info btn-sm btnb" data-placement="bottom"
					data-toggle="tooltip" title="保存"> <span
					class="glyphicon  glyphicon-floppy-saved"></span>
				</a>
				<h4 class="modal-title" id="myModalLabel">基本信息</h4>
			</div>
			<div class="modal-body modal-body-cre"
				style="padding: 15px 15px 0px;">
				<form id="creditsform" method="post">
					<table class="table table-bordered">
						<tbody>
							<tr>
								<input type="hidden" id="id" name="id" value="">
								<td class="sty01">积分规则编号</td>
								<td class="sty01"><input type="text" name="creditsRuleId"
									class="form-control" value="" readonly="true"></td>
							</tr>
							<tr>
							<td class="sty01">积分规则行为</td>
							<td class="sty01">
									<div class="main_demo" style="width: 100%;">
										<select id="creditsActionId" name="creditsActionId" >
									
										</select>
									</div>
								</td>
							</tr>
							<tr>
								<td class="sty01">规则分类</td>
								<td class="sty01">
									<div class="main_demo" style="width: 100%;">
										<select id="creditsTypeId" name="creditsTypeId">

										</select>
									</div>
								</td>
							</tr>
							<tr>
								<td class="sty01">规则内容</td>
								<td class="sty01"><input type="text"
									name="creditsRuleContent" class="form-control" value=""></td>
							</tr>
							<tr>
								<td class="sty01">状态</td>
								<td class="sty01"><input type="radio" name="status"
									id="status-yes" value="1" checked="checked" />开启
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio"
									name="status" id="status-no" value="0" />禁用</td>
							</tr>
							<tr>
								<td class="sty01">最大值</td>
								<td class="sty01"><input type="text" name="maxValue"
									class="form-control" value=""></td>
							</tr>
							<tr>
								<td class="sty01">最小值</td>
								<td class="sty01"><input type="text" name="minValue"
									class="form-control" value=""></td>
							</tr>
							<tr>
								<td class="sty01">积分值</td>
								<td class="sty01"><input type="text" name="creditsVallue"
									class="form-control" value=""></td>
							</tr>
							<tr>
								<td class="sty01">是否每天一次性</td>
								<td class="sty01"><input type="radio" name="isRepeat"
									id="planing-status_yes" value="1" checked="checked" />是
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio"
									name="isRepeat" id="planing-status_no" value="0" />否</td>
							</tr>
							<tr>
								<td class="sty01">每天积分值上限</td>
								<td class="sty01"><input type="text"
									name="creditsUpperValue" class="form-control" value=""></td>
							</tr>
							<tr>
								<td class="sty01">生效时间</td>
								<td class="sty01">
									<div id="demo" style="width: 100%; float: left;">
										<input id="starttime" name="startCreditsDt" value=""
											class="form-control form-control_1 params Wdate"
											tag="w-params" type="text"
											onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><span
											style="margin: -23px 10px 0px 0px; float: right; color: #888888;"
											class="glyphicon glyphicon-time demo-i"></span>
										<div id=""></div>
									</div>
								</td>
							</tr>
							<tr>
								<td class="sty01">结束时间</td>
								<td class="sty01">
									<div id="demo" style="width: 100%; float: left;">
										<!--<input type="text" id="starttime" name="starttime" class="form-control form-control_1 params" tag="w-params" onclick="SelectDate(this,'hh:mm')"/><span style="margin: -23px 10px 0px 0px;float: right;color: #888888;" class="glyphicon glyphicon-time demo-i"  ></span>-->
										<input id="endtime" name="endCreditsDt" value=""
											class="form-control form-control_1 params Wdate"
											tag="w-params" type="text"
											onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><span
											style="margin: -23px 10px 0px 0px; float: right; color: #888888;"
											class="glyphicon glyphicon-time demo-i"></span>
										<div id=""></div>
									</div>
								</td>
							</tr>
							<tr>
								<td class="sty01">备注</td>
								<td class="sty01"><input type="text" name="remarks"
									class="form-control" value=""></td>
							</tr>
						</tbody>
					</table>
				</form>
			</div>
		</div>
	</div>
	<!-- 搜索框开始-->
	<div class="se_area">
		<form id="searchForm" method="post">
			<div style="padding: 5px 15px 10px;" class="search_1">
				<div style="margin: 5px;" id="se_cond">
					<!-- <div class="se_select">
						<span style="float: left; padding-top: 5px;">积分动作：</span>
						<div class="main_demo"
							style="width: auto; min-width: 85px; float: left;">
							<select class="params select2-offscreen" tag="w-params"
								id="deptid" name="deptid" tabindex="-1">
								<option value="">全部</option>
								<option value="DP000001">总公司</option>
							</select>
						</div>
					</div>
					<div style="clear: both;"></div>
					<div class="se_select">
						<span style="float: left; padding-top: 5px;">积分规则分类：</span>
						<div class="main_demo"
							style="width: auto; min-width: 85px; float: left;">
							<select class="params select2-offscreen" tag="w-params"
								id="roleid" name="roleid" tabindex="-1">
								<option value="">全部</option>
								<option value="CA00001">测试动作</option>
							</select>
						</div>
					</div> -->
					<div style="clear: both;"></div>
					<div class="se_date se_select">
						<span style="float: left; padding-top: 5px;">关键字：</span>
						<div class="input-group" style="border-radius: 3px; width: 80%;">
							<input style="border-radius: 3px;" id="keyword" name=""keyword""
								class="text-green form-control input-g params" tag="w-params"
								placeholder="关键字..." type="text">
						</div>
					</div>
					<div style="clear: both;"></div>
					<!-- 时间 -->
					<div class="se_date se_select">
						<span style="float: left; padding-top: 5px;">生效时间：</span>
						<div class="demo" style="width: 40%; float: left;">
							<input id="starttime" name="starttime" value=""
								class="form-control form-control_1 params Wdate" tag="w-params"
								type="text"
								onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><span
								style="margin: -23px 10px 0px 0px; float: right; color: #888888;"
								class="glyphicon glyphicon-time demo-i"></span>
							<div id=""></div>
						</div>

						<span style="float: left; padding: 5px;">~</span>
						<div class="demo" style="width: 38%; float: left;">
							<input id="endtime" name="endtime" value=""
								class="form-control form-control_1 params Wdate" tag="w-params"
								type="text"
								onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><span
								style="margin: -23px 10px 0px 0px; float: right; color: #888888;"
								class="glyphicon glyphicon-time demo-i"></span>
							<div id=""></div>
						</div>
					</div>
					<div style="clear: both;"></div>
					<a type="button" href="javaScript:search(1);" name="seach"
						id="search-btn" class="ascertain_btn">确定</a>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="../pointJs/credits.js"></script>
</body>
</html>
